package com.oocl.server.po;

import java.util.List;

public class Deptment {
	
	private int did;
	private String dname;
	private String city;
	private List<Person> pList;
	
	public int getDid() {
		return did;
	}
	public void setDid(int did) {
		this.did = did;
	}
	public String getDname() {
		return dname;
	}
	public void setDname(String dname) {
		this.dname = dname;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public List<Person> getpList() {
		return pList;
	}
	public void setpList(List<Person> pList) {
		this.pList = pList;
	}
	
	public String toString() {
		String deptStr = new String();
		deptStr = "did: " + getDid() + " dname :" + getDname() + " city:" + getCity();
		return deptStr;
	}
}
